home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_2 / prodiz11.zip / PROUT1.BAT < prev   
DOS Batch File  |  1992-01-03  |  2KB  |  59 lines

  1. @echo off
  2. rem -- process a single upload file - for ProDOOR 3.4
  3. rem -- %1-logfile, %2-testfile, %3-comport, %4-conference
  4.  
  5. rem -- determing file type and branch to proper test case
  6. rem -- using 4DOS commands
  7. if %@ext[%2] == gif goto gif
  8. if %@ext[%2] == zip goto zip
  9. if %@ext[%2] == exe goto exe
  10. if %@ext[%2] == lzh goto zip
  11. if %@ext[%2] == arj goto zip
  12. goto end
  13.  
  14. :exe
  15. proecho %3 EXE files are not allowed!  ZIP or GIF only!
  16. mov %2 h:\hold
  17. goto end
  18.  
  19. rem -- Check GIF, delete if invalid or incomplete GIF file and
  20. rem -- add resolution to description
  21. :gif
  22. giftest %2 /E/A/P:%3/L/B:1/D/M:321x201x16/F:\prolon%pcbnode%\$door.nam
  23. goto end
  24.  
  25. rem -- test ZIP files
  26. rem -- ZipLab Plus tests ZIP, ARJ, and LZH files
  27. :zip
  28. SET PCBDOOR=PRODOOR
  29. ptest %2 \prolon%pcbnode%\ptest.cfg
  30. SET PCBDOOR=
  31. if not exist %2 goto end
  32.  
  33. proecho %3 ~Searching for FILE_ID.DIZ...~
  34. prodiz %2 \prolon%pcbnode%\$door.nam /D
  35.  
  36. rem proecho %3 ~Checking CRC for duplication...~
  37. rem zdcsfc %2 UPLOAD
  38. rem if exist pcbfail.txt sendcom %3 /F PCBFAIL.TXT
  39. rem if exist pcbfail.txt del %2
  40. rem if not exist %2 goto end
  41.  
  42. rem -- Check for AV in the file
  43. proecho %3 ~~ChkAv 2.2 - Courtesy of The Bard's Lair (718)381-3651~
  44. proecho %3 ~Checking for -AV~
  45. chkav %2
  46. if errorlevel == 2 av
  47. goto end
  48.  
  49. rem -- Found AV
  50. :av
  51. proecho %3 ~~Found -AV in file, sending mail to SysOp to revue file... ~
  52. echo User has uploaded the file: %2 > mail
  53. echo which contains an -AV in it, please revue file. >> mail
  54. txt2msg f:\bbs\main\msgs -tSYSOP -fPROUTEST -sAV_File mail
  55. del mail
  56. goto end
  57.  
  58. :end
  59.